<template>
  <div>
    <van-icon name="arrow-left" @click="back" size="48" />
    <p>{{ MtitleTxt }}</p>
  </div>
</template>

<script>
export default {
  // 接收父组件传递过来的内容
  props: ["MtitleTxt"],
  methods: {
    //后退
    back() {
      this.$router.back();
    },
  },
};
</script>

<style lang="scss" scoped>
div {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 30px;
  p {
    flex: 1;
    text-align: center;
    color: rgba(16, 16, 16, 100);
    font-size: 56px;
  }
}
</style>